<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/base.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>直播</title>
</head>
<body>
	<div class="oc-live-list-for">
		<div class="ol-l-for-boy">
			<ul>
				<c:forEach items="${courseList}" var="live">
					<li>
						<a href="${ctx}/mobile/course/info/${live.courseId}">
							<div>
								<span class="img" style="margin-top:2px;">
									<c:if test="${live.mobileLogo == null || live.mobileLogo == ''}">
										<img src="${ctx}/static/mobile/img/sprite.gif">
									</c:if>
									<c:if test="${live.mobileLogo != null && live.mobileLogo != ''}">
										<img src="<%=staticImageServer%>${live.mobileLogo}">
									</c:if>
								</span>
								<div class="txt">
									<p class="tit">
											${live.kpointName}
									</p>
									<p class="boy">
										<tt class="teach"><c:forEach items="${live.teacherList}" var="teacher" begin="0" end="2">${teacher.name}&nbsp;</c:forEach> </tt>
									<div class="clear"></div>
									</p>
									<p class="boy">
										<tt class="sj"><fmt:formatDate value="${live.beginTime}" pattern="yyyy-MM-dd HH:mm"/> 至 <fmt:formatDate value="${live.endTime}" pattern="HH:mm"/></tt>
									<div class="clear"></div>
									</p>

								</div>
								<div class="clear"></div>
								<div class="txt-1">
									<c:if test="${live.kpointBeginTimeNum == 0 && live.kpointEndTimeNum != 0}"><sapn class="btn btn-zbz">进入直播</sapn></c:if>
									<c:if test="${live.kpointBeginTimeNum != 0 && live.kpointEndTimeNum != 0}"><sapn class="btn btn-jks">直播未开始</sapn></c:if>
									<c:if test="${live.kpointBeginTimeNum == 0 && live.kpointEndTimeNum == 0}"><sapn class="btn btn-yjs">直播已结束</sapn></c:if>
								</div>
							</div>
						</a>
					</li>
				</c:forEach>
			</ul>
		</div>
	</div>
</body>
</html>